<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div class="panelBar">
	<form id="pagerForm" action="${pageUrl}" method="post">
		<input type="hidden" name="pager.pageNum" value="${pager.pageNum}" />
		<!--【必须】value=1可以写死-->

		<input type="hidden" name="pager.numPerPage"
			value="${pager.numPerPage }" />
		<!--【可选】每页显示多少条-->

		<input type="hidden" name="pager.orderField"
			value="${pager.orderField }" />
		<!--【可选】查询排序-->

		<input type="hidden" name="pager.orderDirection"
			value="${pager.orderDirection }" />
		<!--【可选】升序降序-->

	</form>
	<div class="pages">
		<span>显示</span> <select class="combox" name="pager.numPerPage"
			<c:if test="${empty(targetType) }">
		       	onchange="navTabPageBreak({numPerPage:this.value}, '${pageRel }')"
			</c:if>
			<c:if test="${not empty(targetType) }">
				<c:choose>
					<c:when test="${targetType eq 'dialog' }">
						onchange="dialogPageBreak({numPerPage:this.value}, '${pageRel }')"
					</c:when>
					<c:when test="${targetType eq 'navTab' }">
					    onchange="navTabPageBreak({numPerPage:this.value}, '${pageRel }')"
					</c:when>
					<c:when test="${targetType eq 'div' }">
					    onchange="navTabPageBreak({numPerPage:this.value}, '${pageRel }')"
					</c:when>
				</c:choose>
			</c:if>>
			<option value="20"
				<c:if test="${ pager.numPerPage eq 20}" >selected="selected"</c:if>>20</option>
			<option value="50"
				<c:if test="${ pager.numPerPage eq 50}" >selected="selected"</c:if>>50</option>
			<option value="100"
				<c:if test="${ pager.numPerPage eq 100}" >selected="selected"</c:if>>100</option>
			<option value="500"
				<c:if test="${ pager.numPerPage eq 500}" >selected="selected"</c:if>>500</option>
		</select> <span>条，共${pager.totalCount}条</span>
	</div>

	<div class="pagination"
		targetType="${empty(targetType)?'navTab':targetType}"
		<c:if test="${not empty(pageRel)}" >rel="${pageRel }"</c:if>
		totalCount="${pager.totalCount}" numPerPage="${pager.numPerPage}"
		pageNumShown="5" currentPage="${pager.pageNum }"></div>
</div>